<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%-- 
    Document   : addperson
    Created on : 2013-04-10, 08:09:35
    Author     : Krzysztof Nyznar
--%>

<html>
<head>
  <title><fmt:message key="title"/></title>
  <style>
    .error { color: red; }
  </style>  
</head>
<body>
<h1><fmt:message key="addperson.heading"/></h1>
<form:form method="post" commandName="addPerson">
  <table width="95%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td align="right" width="20%">Imie :</td>
        <td width="20%">
          <form:input path="name"/>
        </td>
        <td width="60%">
          <form:errors path="name" cssClass="error"/>
        </td>
    </tr>
    <tr>
        <td align="right" width="20%">Nazwisko :</td>
        <td width="20%">
          <form:input path="surname"/>
        </td>
        <td width="60%">
          <form:errors path="surname" cssClass="error"/>
        </td>
    </tr>
    <tr>
        <td align="right" width="20%">Adres :</td>
        <td width="20%">
          <form:input path="address"/>
        </td>
        <td width="60%">
          <form:errors path="address" cssClass="error"/>
        </td>
    </tr>
  </table>
  <br>
  <input type="submit" align="center" value="Dodaj">
</form:form>
<a href="<c:url value="contact.htm"/>">Powrot</a>
</body>
</html>